<div heading="添加文章">
          <div class="panel-body">
            <form name="form1" class="form-horizontal form-validation ng-pristine ng-valid ng-valid-required">
               <div class="form-group">
                <label class="col-lg-1 control-label" style="">主要信息:</label>
              </div>
              <div class="form-group">
                <label class="col-lg-2 control-label">分类:</label>
                <div class="col-lg-4">
                  <ui-select ng-model="obj.category_id" theme="bootstrap" ng-change="change(obj.category_id)">
                    <ui-select-match placeholder="选择上级分类..">{{$select.selected.title}}</ui-select-match>
                    <ui-select-choices repeat="item.id as item in pid_list | filter: $select.search">
                      <span ng-bind-html="item.title | highlight: $select.search"></span>
                    </ui-select-choices>
                  </ui-select>                
                </div>
              </div>
              <div class="form-group">
                <label class="col-lg-2 control-label">文章标题:</label>
                <div class="col-lg-4">
                  <input type="text" class="form-control" placeholder="必填" ng-model="obj.title">
                </div>
              </div>
              
              <div class="form-group">
                <label class="col-lg-2 control-label">排序:</label>
                <div class="col-lg-4">
                  <input type="text" class="form-control" placeholder="必填" ng-model="obj.sort">
                </div>
              </div>

              <!--<div class="form-group">
                <label class="col-lg-2 control-label">文章主图:</label>
                <div class="col-lg-4">
                    <button class="btn m-b-xs w-sm btn-success" ng-click="image()">
                        <i class="fa fa-file-image-o"></i> 添加图片
                    </button>
                    <br>
                    {{imagearr | json}}
                  </div>
              </div>-->
              <div class="form-group">
                <label class="col-lg-1 control-label" style="">附加信息:</label>
              </div>
              <div class="form-group">
                <label class="col-lg-2 control-label">景区标题:</label>
                <div class="col-lg-4">
                  <input type="text" class="form-control" placeholder="非必填" ng-model="infoobj.viewtitle">
                </div>
              </div>
              <div class="form-group">
                <label class="col-lg-2 control-label">景区类型:</label>
                <div class="col-lg-4">
                  <select name="" id="" ng-model="infoobj.viewtype">
                    <option value="0">中餐</option>
                    <option value="1">西餐</option>
                    <option value="2">外餐</option>
                    <option value="3">快餐</option>                    
                  </select>
                </div>
              </div>
              <div class="form-group">
                <label class="col-lg-2 control-label">景区图片:</label>
                <div class="col-lg-4">
                    <button class="btn m-b-xs w-sm btn-success" ng-click="viewimage()">
                        <i class="fa fa-file-image-o"></i> 添加图片
                    </button>
                    <br>
                    {{imagearr | json}}
                  </div>
              </div>
              <div class="form-group">
                <label class="col-lg-2 control-label">景区介绍:</label>
                <div class="col-lg-4">
                  <input type="text" class="form-control" placeholder="非必填" ng-model="infoobj.info">
                </div>
              </div>
              <div class="form-group">
                <label class="col-lg-2 control-label">景区电话:</label>
                <div class="col-lg-4">
                  <input type="text" class="form-control" placeholder="非必填" ng-model="infoobj.mobile">
                </div>
              </div>
              <div class="form-group">
                <label class="col-lg-2 control-label">投诉电话:</label>
                <div class="col-lg-4">
                  <input type="text" class="form-control" placeholder="非必填" ng-model="infoobj.tel">
                </div>
              </div>
              <div class="form-group">
                <label class="col-lg-2 control-label">景区美图:</label>
                <div class="col-lg-4">
                    <button class="btn m-b-xs w-sm btn-success" ng-click="meiimage()">
                        <i class="fa fa-file-image-o"></i> 添加图片
                    </button>
                    <br>
                    {{imagearr | json}}
                  </div>
              </div>
              <div class="form-group">
                <label class="col-lg-2 control-label">全息虚拟游:</label>
                <div class="col-lg-4">
                  <input type="text" class="form-control" placeholder="非必填" ng-model="infoobj.travle">
                </div>
              </div>
             <div class="form-group">
                <label class="col-lg-2 control-label">景区航拍:</label>
                <div class="col-lg-4">
                    <button class="btn m-b-xs w-sm btn-success" ng-click="aerialimage()">
                        <i class="fa fa-file-image-o"></i> 添加图片
                    </button>
                    <br>
                    {{imagearr | json}}
                  </div>
              </div>
              <div class="form-group">
                <label class="col-lg-2 control-label">景区地址:</label>
                <div class="col-lg-4">
                  <input type="text" class="form-control" placeholder="非必填" ng-model="infoobj.adress">
                </div>
              </div>
              <div class="form-group">
                <label class="col-lg-2 control-label">菜系:</label>
                <div class="col-lg-4">
                  <input type="text" class="form-control" placeholder="非必填" ng-model="infoobj.cuisine">
                </div>
              </div>
              <div class="form-group">
                <label class="col-lg-2 control-label">提供服务:</label>
                <div class="col-lg-4">
                  <input type="text" class="form-control" placeholder="非必填" ng-model="infoobj.service">
                </div>
              </div>
              <div class="form-group">
                <label class="col-lg-2 control-label">推荐套房:</label>
                <div class="col-lg-4">
                  <input type="text" class="form-control" placeholder="非必填" ng-model="infoobj.suite">
                </div>
              </div>
              <div class="form-group">
                <label class="col-lg-2 control-label">价格:</label>
                <div class="col-lg-4">
                  <input type="text" class="form-control" placeholder="非必填" ng-model="infoobj.price">
                </div>
              </div>
              <div class="form-group">
                <label class="col-lg-2 control-label">景区活动:</label>
                <div class="col-lg-4">
                  <input type="text" class="form-control" placeholder="非必填" ng-model="infoobj.activity">
                </div>
              </div>



              
            </form>

            <div class="col-lg-2"></div>
            <div class="col-lg-3">
              <button class="btn btn-primary btn-rounded" ng-click="save()">添加</button>
              <button class="btn btn-default btn-rounded" ng-click="cancel()">取消</button>
            </div>
          </div>
</div>
